package Runtime;

import java.awt.*;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException, InterruptedException {
        Runtime runtime = Runtime.getRuntime();
        System.out.println("可用线程处理器："+runtime.availableProcessors());
        System.out.println("总内存："+runtime.totalMemory()/1024/1024+"M");
        System.out.println("空闲内存："+runtime.freeMemory()/1024/1024+"M");


        Process process = runtime.exec("C:\\Users\\Lenovo\\Desktop\\抖音.lnk");
        Thread.sleep(5000);

        process.destroy();



    }
}
